/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.sistema.entidades.testes;

import br.com.sistema.entidades.ItemMenu;
import br.com.sistema.entidades.MenuLateral;
import java.sql.SQLException;

/**
 *
 * @author Lauro
 */
public class Teste {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) throws SQLException {
        for (int i = 1; i <= 3; i++) {
            MenuLateral menu = new MenuLateral("Menu Lateral " + i);
            menu.salvar();
            System.out.println("Menu: " + menu.getIndice() + " -> " + menu.getNome());
            for (int j = 1; j <= 4; j++) {
                ItemMenu itemMenu = new ItemMenu("Item Menu " + i + "-" + j, menu);
                itemMenu.salvar();
                System.out.println("- Item Menu: " + menu.getIndice() + "-" + itemMenu.getIndice() + " -> " + itemMenu.getNome());
            }
        }
    }
}
